<template>
  <div class="container-item-tag">
    <div class="item-tag" v-for="(temp, index) in value" :key="index">
      <div class="tag">{{temp}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  created() {
      console.log(this.value)
  }
};
</script>

<style lang="less">
.container-item-tag{
    display: flex;
    flex-wrap: wrap;
}
.item-tag {
  position: relative;
  height: 21px;
  white-space: nowrap;
  .tag {
    padding: 3px 5px;
    border: 1px solid #e44f50;
    text-align: center;
    font-size: 12px;
    border-radius: 10px;
    color: #e44f50;
    margin: 3px;
  }
}
</style>